export default {
	methods: {
		getSaleOrderItemInfo(x) {
			return {
				// 主表
				'saleOrderId': x.saleOrderId,
				'saleOrderCode': x.saleOrderCode,
				'customerId': x.saleOrderCustomerId,
				'customerCode': x.saleOrderCustomerCode,
				'customerName': x.saleOrderCustomerName,
				// 子表
				'saleOrderItemId': x.id,
				'awaitAllocatedQty': x.awaitAllocatedQty,
				'allocatedQty': x.allocatedQty,
				'orderAllocatedQty': x.awaitAllocatedQty,
				'productQty': x.productQty,
				'productId': x.productId,
				'productCode': x.productCode,
				'productName': x.productName,
				'unitId': x.unitId,
				'unitCode': x.unitCode,
				'unitName': x.unitName,
				'productModels': x.productModels,
				'yarnCount': x.yarnCount
			};
		}
	}
};
